class Page < ActiveRecord::Base
    belongs_to :site
    
        
    def to_param
        return self.title    
    end
    
    validates_uniqueness_of :title, :scope => "site_id"
    
end
